import request from "@/utils/request";

export default {
    // 查询所有病房
    getHouse() {
        return request({
            url: 'http://localhost/api/hosp/house/getHouse',
            method: 'get'
        });
    },

    // 添加病房
    addHouse(data) {
        return request({
            url: 'http://localhost/api/hosp/house/addHouse',
            method: 'post',
            data
        });
    },

    // 修改病房
    updateHouse(data) {
        return request({
            url: 'http://localhost/api/hosp/house/updateHouse',
            method: 'post',
            data
        });
    },
}